/* eslint-disable indent */
/*
 路由器对象模块
 */
import Vue from "vue";
import VueRouter from "vue-router";

const Home = () => import('../pages/Home/Home.vue')
const HomeDetail = () => import('../pages/Home/Detail/Detail.vue')
const AddDetail = () => import('../pages/Home/Detail/addDetailList.vue')
const AddFeed = () => import('../pages/Home/Detail/addFeedList.vue')
const AddOperation = () => import('../pages/Home/Detail/addOperationList.vue')
const OpreationReport = () => import('../pages/Home/Detail/OperationReport.vue')
const AddBiosList = () => import('../pages/Home/Detail/addBiosList.vue')
const Facility = () => import('../pages/Facility/Facility.vue')
const FacilityDetail = () => import('../pages/Facility/Detail/facilityDetail.vue')
const FacilityList = () => import('../pages/Facility/Detail/facilityList.vue')
const FacilityReport = () => import('../pages/Facility/Detail/reportList.vue')
const AddReport = () => import('../pages/Facility/Detail/addReport.vue')
// 实验室部分
const Laboratory = () => import('../pages/Laboratory/Laboratory.vue')
const Manage = () => import('../pages/Laboratory/Detail/manage/manage.vue')
const addManage = () => import('../pages/Laboratory/Detail/manage/addManage.vue')
const addInventory = () => import('../pages/Laboratory/Detail/manage/addInventory.vue')
const Testing = () => import('../pages/Laboratory/Detail/testing/testing.vue')
const AddTesting = () => import('../pages/Laboratory/Detail/testing/addTesting.vue')

const Message = () => import('../pages/User/Message.vue') // 我的-主模块
const Login = () => import('../pages/User/Detail/login.vue') // 我的-登录页面
const Modification = () => import('../pages/User/Detail/modification.vue') // 我的-修改信息
const Drafts = () => import('../pages/User/Detail/drafts.vue') // 我的-草稿箱
// 实验室-饲料管理
const Feeds = () => import('../pages/Laboratory/Detail/feeds/feeds.vue')
const Backlog = () => import('../pages/User/Detail/backlog.vue') // 我的-待办事务
const Hastransaction = () => import('../pages/User/Detail/Hastransaction.vue') // 我的-已办事务
const Regulatory = () => import('../pages/User/Detail/Regulatory.vue') // 我的-规章制度

const Fishlist = () => import('../pages/User/Detail/fishlist.vue') // 我的鱼缸基本信息管理

// 生物管理
const Bios = () => import('../pages/Laboratory/Detail/bios/bios.vue')
const AddBios = () => import('../pages/Laboratory/Detail/bios/addBios.vue')
const AddAbnormal = () => import('../pages/Laboratory/Detail/bios/addAbnormal.vue')
const AddStackBios = () => import('../pages/Laboratory/Detail/bios/addStackBios.vue')
// 值班交接
const Join = () => import('../pages/Laboratory/Detail/join/join.vue')
const AddJoin = () => import('../pages/Laboratory/Detail/join/addJoin.vue')
// 声明使用插件
Vue.use(VueRouter)

export default new VueRouter({
  // 所有路由
  routes: [
    {
      path: '/home',
      component: Home, // 返回路由组件的函数, 只有执行此函数才会加载路由组件, 这个函数在请求对应的路由路径时才会执行
      meta: {
        showFooter: true
      }
    },
    {
      path: '/home/detail',
      component: HomeDetail, // 返回路由组件的函数, 只有执行此函数才会加载路由组件, 这个函数在请求对应的路由路径时才会执行
      meta: {
        showFooter: true
      }
    },
    {
      path: '/home/addDetail',
      component: AddDetail,
      meta: {
        showFooter: true
      }
    },
    {
      path: '/home/addFeed',
      component: AddFeed,
      meta: {
        showFooter: true
      }
    },
    {
      path: '/home/addOperation',
      component: AddOperation,
      meta: {
        showFooter: true
      }
    },
    {
      path: '/home/addBiosList',
      component: AddBiosList,
      meta: {
        showFooter: true
      }
    },
    {
      path: '/home/opreationReport',
      component: OpreationReport, // 返回路由组件的函数, 只有执行此函数才会加载路由组件, 这个函数在请求对应的路由路径时才会执行
      meta: {
        showFooter: true
      }
    },
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/facility',
      component: Facility, //
      meta: {
        showFooter: true
      }
    },
    {
      path: '/facility/detail',
      component: FacilityDetail, //
      meta: {
        showFooter: true
      }
    },
    {
      path: '/facility/list',
      component: FacilityList, //
      meta: {
        showFooter: true
      }
    },
    {
      path: '/facility/report',
      component: FacilityReport, //
      meta: {
        showFooter: true
      }
    },
    {
      path: '/facility/addReport',
      component: AddReport, //
      meta: {
        showFooter: true
      }
    },
    {
      path: '/laboratory',
      component: Laboratory, //
      meta: {
        showFooter: true
      }
    },
    {
      path: '/laboratory/manage',
      component: Manage, //
      meta: {
        showFooter: true
      }
    },
    {
      path: '/laboratory/addManage',
      component: addManage, //
      meta: {
        showFooter: true
      }
    },
    {
      path: '/laboratory/addInventory',
      component: addInventory, //
      meta: {
        showFooter: true
      }
    },
    {
      path: '/laboratory/testing',
      component: Testing, //
      meta: {
        showFooter: true
      }
    },
    {
      path: '/laboratory/addTesting',
      component: AddTesting, //
      meta: {
        showFooter: true
      }
    },
    {
      path: '/laboratory/feeds',
      component: Feeds, //
      meta: {
        showFooter: true
      }
    },
    {
      path: '/laboratory/bios',
      component: Bios, //
      meta: {
        showFooter: true
      }
    },
    {
      path: '/laboratory/addBios',
      component: AddBios, //
      meta: {
        showFooter: true
      }
    },

    {
      path: '/laboratory/addAbnormal',
      component: AddAbnormal, //
      meta: {
        showFooter: true
      }
    },
    {
      path: '/laboratory/addStackBios',
      component: AddStackBios, //
      meta: {
        showFooter: true
      }
    },


      {
          path: '/facility/addReport',
          component: AddReport, //
          meta: {
              showFooter: true
          }
      },
      {
          path: '/laboratory',
          component: Laboratory, //
          meta: {
              showFooter: true
          }
      },
      {
          path: '/laboratory/manage',
          component: Manage, //
          meta: {
              showFooter: true
          }
      },
      {
          path: '/laboratory/addManage',
          component: addManage, //
          meta: {
              showFooter: true
          }
      },
      {
          path: '/laboratory/addInventory',
          component: addInventory, //
          meta: {
              showFooter: true
          }
      },
      {
          path: '/laboratory/testing',
          component: Testing, //
          meta: {
              showFooter: true
          }
      },
      {
          path: '/laboratory/addTesting',
          component: AddTesting, //
          meta: {
              showFooter: true
          }
      },
      {
          path: '/laboratory/feeds',
          component: Feeds, //
          meta: {
              showFooter: true
          }
      },
      {
          path: '/laboratory/bios',
          component: Bios, //
          meta: {
              showFooter: true
          }
      },
      {
          path: '/laboratory/addBios',
          component: AddBios, //
          meta: {
              showFooter: true
          }
      },
      {
          path: '/laboratory/addAbnormal',
          component: AddAbnormal, //
          meta: {
              showFooter: true
          }
      },
      {
          path: '/laboratory/addStackBios',
          component: AddStackBios, //
          meta: {
              showFooter: true
          }
      },
      {
          path: '/laboratory/join',
          component: Join, //
          meta: {
              showFooter: true
          }
      },
      {
          path: '/laboratory/addJoin',
          component: AddJoin, //
          meta: {
              showFooter: true
          }
      },
      {
        path: '/Message',
        component: Message, //  我的
        meta: {
          showFooter: true
        }
    },

    {
      path: '/login',
      component: Login, //    登录
      meta: {
        showFooter: true
      }
    },
    {
      path: '/modification',
      component: Modification, //    登录
      meta: {
        showFooter: true
      }
    },
    {
      path: '/drafts',
      component: Drafts, //    草稿箱
      meta: {
        showFooter: true
      }
    },
    {
      path: '/backlog',
      component: Backlog, //    待办事务
      meta: {
        showFooter: true
      }
    },
    {
      path: '/hastransaction',
      component: Hastransaction, //    已办事务
      meta: {
        showFooter: true
      }
    },
    {
      path: '/regulatory',
      component: Regulatory, //    规章制度
      meta: {
        showFooter: true
      }
    },
    {
      path: '/fishlist',
      component: Fishlist, //    鱼缸基本信息管理
      meta: {
        showFooter: true
      }
    }
  ]
})
